package cs2114.gCalc;

public class Assignment
{
    protected String work;
    protected int points;
    protected int outOf;
    protected int percent;

    public Assignment(String work, int points, int outOf)
    {
        this.work = work;
        this.points = points;
        this.outOf = outOf;
        percent = (points / outOf) * 100;
    }

    // ----------------------------------------------------------
    /**
     * @return the work
     */
    public String getWork()
    {
        return work;
    }

    // ----------------------------------------------------------
    /**
     * @param work the work to set
     */
    public void setWork(String newWork)
    {
        work = newWork;
    }

    // ----------------------------------------------------------
    /**
     * @return the points
     */
    public int getPoints()
    {
        return points;
    }

    // ----------------------------------------------------------
    /**
     * @param points the points to set
     */
    public void setPoints(int newPoints)
    {
        points = newPoints;
    }

    // ----------------------------------------------------------
    /**
     * @return the outOf
     */
    public int getOutOf()
    {
        return outOf;
    }

    // ----------------------------------------------------------
    /**
     * @param outOf the outOf to set
     */
    public void setOutOf(int newOutOf)
    {
        outOf = newOutOf;
    }



}
